package com.dragon.modules.yuegou.entity.member;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.member.PtTurntableCountWay;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 积分大转盘表实体类<br>
 * 对应的表为：mem_pt_turntable<br>
 * 
 * @author pbuilder generated
 * @date 2022-03-15 15:40:29
 * @company sgy
 * @version 2.0
 */
@TableName("mem_pt_turntable")
@ApiModel(description = "积分大转盘表")
public class PtTurntableEntity {

    /** id */
	@ApiModelProperty("id")
	protected String id;

    /** 商圈id */
	@ApiModelProperty("商圈id")
	protected String busdId;

    /** 抽奖标题 */
	@ApiModelProperty("抽奖标题")
	protected String title;

    /** 开始时间 */
	@ApiModelProperty("开始时间")
	protected LocalDateTime startTime;

    /** 结束时间 */
	@ApiModelProperty("结束时间")
	protected LocalDateTime endTime;

    /** 中奖文案 */
	@ApiModelProperty("中奖文案")
	protected String prizeContent;

    /** 重复中奖文案 */
	@ApiModelProperty("重复中奖文案")
	protected String prizeRepeatContent;

    /** 未中奖文案 */
	@ApiModelProperty("未中奖文案")
	protected String missPrizeContent;

    /** 消耗积分 */
	@ApiModelProperty("消耗积分")
	protected Integer consumePoint;

    /** 中奖最大次数 */
	@ApiModelProperty("中奖最大次数")
	protected Integer maxCount;

    /** 每人每天抽奖次数 */
	@ApiModelProperty("每人每天抽奖次数")
	protected Integer maxExtractCount;

    /** 抽奖规则说明 */
	@TableField("`explain`")
	@ApiModelProperty("抽奖规则说明")
	protected String explain;

    /** 中奖概率 */
	@ApiModelProperty("中奖概率")
	protected BigDecimal gainProbability;

    /** 不中奖概率 */
	@ApiModelProperty("不中奖概率")
	protected BigDecimal missProbability;

    /** 入口图标 */
	@ApiModelProperty("入口图标")
	protected String indexIcon;

    /** 顶部图  */
	@ApiModelProperty("顶部图 ")
	protected String turntableTopImg;

    /** 活动背景图 */
	@ApiModelProperty("活动背景图")
	protected String turntableActImg;

    /** 转盘背景图 */
	@ApiModelProperty("转盘背景图")
	protected String turntableBackImg;

    /** 应用系统 */
	@ApiModelProperty("应用系统")
	protected String applicationCode;

    /** 启用状态 */
	@ApiModelProperty("启用状态")
	protected Boolean enableStatus;

    /** [枚举]抽奖概率计算：0-按商品总数计算-ALL、1-按商品剩余数计算-SURPLUS */
	@ApiModelProperty("[枚举]抽奖概率计算：0-按商品总数计算-ALL、1-按商品剩余数计算-SURPLUS")
	protected PtTurntableCountWay countWay;

    /**  */
	protected LocalDateTime createdTime;

    /**  */
	protected String createdBy;

    /**  */
	protected LocalDateTime modifiedTime;

    /**  */
	protected String modifiedBy;

    /** 删除 0-未删除；1-已删除 */
	@ApiModelProperty("删除 0-未删除；1-已删除")
	protected Boolean del;

    /**  */
	protected LocalDateTime delTime;

    /**  */
	protected String delBy;

	/**
	 * 构造一个空积分大转盘表实体对象
	 */
	public PtTurntableEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个积分大转盘表实体对象
	 * 
	 * @param other 其它对象
	 */
	public PtTurntableEntity(PtTurntableEntity other){
		super();
     	this.id = other.id;
     	this.busdId = other.busdId;
     	this.title = other.title;
     	this.startTime = other.startTime;
     	this.endTime = other.endTime;
     	this.prizeContent = other.prizeContent;
     	this.prizeRepeatContent = other.prizeRepeatContent;
     	this.missPrizeContent = other.missPrizeContent;
     	this.consumePoint = other.consumePoint;
     	this.maxCount = other.maxCount;
     	this.maxExtractCount = other.maxExtractCount;
     	this.explain = other.explain;
     	this.gainProbability = other.gainProbability;
     	this.missProbability = other.missProbability;
     	this.indexIcon = other.indexIcon;
     	this.turntableTopImg = other.turntableTopImg;
     	this.turntableActImg = other.turntableActImg;
     	this.turntableBackImg = other.turntableBackImg;
     	this.applicationCode = other.applicationCode;
     	this.enableStatus = other.enableStatus;
     	this.countWay = other.countWay;
     	this.createdTime = other.createdTime;
     	this.createdBy = other.createdBy;
     	this.modifiedTime = other.modifiedTime;
     	this.modifiedBy = other.modifiedBy;
     	this.del = other.del;
     	this.delTime = other.delTime;
     	this.delBy = other.delBy;
	}


	/**
	 * 获取id
	 * 
	 * @return id id
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置id
	 * 
	 * @param id id
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取商圈id
	 * 
	 * @return busdId 商圈id
	 */
	public String getBusdId() {
		return busdId;
	}
  	
	/**
	 * 设置商圈id
	 * 
	 * @param busdId 商圈id
	 */
	public void setBusdId(String busdId) {
		this.busdId = busdId;
	}

	/**
	 * 获取抽奖标题
	 * 
	 * @return title 抽奖标题
	 */
	public String getTitle() {
		return title;
	}
  	
	/**
	 * 设置抽奖标题
	 * 
	 * @param title 抽奖标题
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * 获取开始时间
	 * 
	 * @return startTime 开始时间
	 */
	public LocalDateTime getStartTime() {
		return startTime;
	}
  	
	/**
	 * 设置开始时间
	 * 
	 * @param startTime 开始时间
	 */
	public void setStartTime(LocalDateTime startTime) {
		this.startTime = startTime;
	}

	/**
	 * 获取结束时间
	 * 
	 * @return endTime 结束时间
	 */
	public LocalDateTime getEndTime() {
		return endTime;
	}
  	
	/**
	 * 设置结束时间
	 * 
	 * @param endTime 结束时间
	 */
	public void setEndTime(LocalDateTime endTime) {
		this.endTime = endTime;
	}

	/**
	 * 获取中奖文案
	 * 
	 * @return prizeContent 中奖文案
	 */
	public String getPrizeContent() {
		return prizeContent;
	}
  	
	/**
	 * 设置中奖文案
	 * 
	 * @param prizeContent 中奖文案
	 */
	public void setPrizeContent(String prizeContent) {
		this.prizeContent = prizeContent;
	}

	/**
	 * 获取重复中奖文案
	 * 
	 * @return prizeRepeatContent 重复中奖文案
	 */
	public String getPrizeRepeatContent() {
		return prizeRepeatContent;
	}
  	
	/**
	 * 设置重复中奖文案
	 * 
	 * @param prizeRepeatContent 重复中奖文案
	 */
	public void setPrizeRepeatContent(String prizeRepeatContent) {
		this.prizeRepeatContent = prizeRepeatContent;
	}

	/**
	 * 获取未中奖文案
	 * 
	 * @return missPrizeContent 未中奖文案
	 */
	public String getMissPrizeContent() {
		return missPrizeContent;
	}
  	
	/**
	 * 设置未中奖文案
	 * 
	 * @param missPrizeContent 未中奖文案
	 */
	public void setMissPrizeContent(String missPrizeContent) {
		this.missPrizeContent = missPrizeContent;
	}

	/**
	 * 获取消耗积分
	 * 
	 * @return consumePoint 消耗积分
	 */
	public Integer getConsumePoint() {
		return consumePoint;
	}
  	
	/**
	 * 设置消耗积分
	 * 
	 * @param consumePoint 消耗积分
	 */
	public void setConsumePoint(Integer consumePoint) {
		this.consumePoint = consumePoint;
	}

	/**
	 * 获取中奖最大次数
	 * 
	 * @return maxCount 中奖最大次数
	 */
	public Integer getMaxCount() {
		return maxCount;
	}
  	
	/**
	 * 设置中奖最大次数
	 * 
	 * @param maxCount 中奖最大次数
	 */
	public void setMaxCount(Integer maxCount) {
		this.maxCount = maxCount;
	}

	/**
	 * 获取每人每天抽奖次数
	 * 
	 * @return maxExtractCount 每人每天抽奖次数
	 */
	public Integer getMaxExtractCount() {
		return maxExtractCount;
	}
  	
	/**
	 * 设置每人每天抽奖次数
	 * 
	 * @param maxExtractCount 每人每天抽奖次数
	 */
	public void setMaxExtractCount(Integer maxExtractCount) {
		this.maxExtractCount = maxExtractCount;
	}

	/**
	 * 获取抽奖规则说明
	 * 
	 * @return explain 抽奖规则说明
	 */
	public String getExplain() {
		return explain;
	}
  	
	/**
	 * 设置抽奖规则说明
	 * 
	 * @param explain 抽奖规则说明
	 */
	public void setExplain(String explain) {
		this.explain = explain;
	}

	/**
	 * 获取中奖概率
	 * 
	 * @return gainProbability 中奖概率
	 */
	public BigDecimal getGainProbability() {
		return gainProbability;
	}
  	
	/**
	 * 设置中奖概率
	 * 
	 * @param gainProbability 中奖概率
	 */
	public void setGainProbability(BigDecimal gainProbability) {
		this.gainProbability = gainProbability;
	}

	/**
	 * 获取不中奖概率
	 * 
	 * @return missProbability 不中奖概率
	 */
	public BigDecimal getMissProbability() {
		return missProbability;
	}
  	
	/**
	 * 设置不中奖概率
	 * 
	 * @param missProbability 不中奖概率
	 */
	public void setMissProbability(BigDecimal missProbability) {
		this.missProbability = missProbability;
	}

	/**
	 * 获取入口图标
	 * 
	 * @return indexIcon 入口图标
	 */
	public String getIndexIcon() {
		return indexIcon;
	}
  	
	/**
	 * 设置入口图标
	 * 
	 * @param indexIcon 入口图标
	 */
	public void setIndexIcon(String indexIcon) {
		this.indexIcon = indexIcon;
	}

	/**
	 * 获取顶部图 
	 * 
	 * @return turntableTopImg 顶部图 
	 */
	public String getTurntableTopImg() {
		return turntableTopImg;
	}
  	
	/**
	 * 设置顶部图 
	 * 
	 * @param turntableTopImg 顶部图 
	 */
	public void setTurntableTopImg(String turntableTopImg) {
		this.turntableTopImg = turntableTopImg;
	}

	/**
	 * 获取活动背景图
	 * 
	 * @return turntableActImg 活动背景图
	 */
	public String getTurntableActImg() {
		return turntableActImg;
	}
  	
	/**
	 * 设置活动背景图
	 * 
	 * @param turntableActImg 活动背景图
	 */
	public void setTurntableActImg(String turntableActImg) {
		this.turntableActImg = turntableActImg;
	}

	/**
	 * 获取转盘背景图
	 * 
	 * @return turntableBackImg 转盘背景图
	 */
	public String getTurntableBackImg() {
		return turntableBackImg;
	}
  	
	/**
	 * 设置转盘背景图
	 * 
	 * @param turntableBackImg 转盘背景图
	 */
	public void setTurntableBackImg(String turntableBackImg) {
		this.turntableBackImg = turntableBackImg;
	}

	/**
	 * 获取应用系统
	 * 
	 * @return applicationCode 应用系统
	 */
	public String getApplicationCode() {
		return applicationCode;
	}
  	
	/**
	 * 设置应用系统
	 * 
	 * @param applicationCode 应用系统
	 */
	public void setApplicationCode(String applicationCode) {
		this.applicationCode = applicationCode;
	}

	/**
	 * 获取启用状态
	 * 
	 * @return enableStatus 启用状态
	 */
	public Boolean getEnableStatus() {
		return enableStatus;
	}
  	
	/**
	 * 设置启用状态
	 * 
	 * @param enableStatus 启用状态
	 */
	public void setEnableStatus(Boolean enableStatus) {
		this.enableStatus = enableStatus;
	}

	/**
	 * 获取[枚举]抽奖概率计算：0-按商品总数计算-ALL、1-按商品剩余数计算-SURPLUS
	 * 
	 * @return countWay [枚举]抽奖概率计算：0-按商品总数计算-ALL、1-按商品剩余数计算-SURPLUS
	 */
	public PtTurntableCountWay getCountWay() {
		return countWay;
	}
  	
	/**
	 * 设置[枚举]抽奖概率计算：0-按商品总数计算-ALL、1-按商品剩余数计算-SURPLUS
	 * 
	 * @param countWay [枚举]抽奖概率计算：0-按商品总数计算-ALL、1-按商品剩余数计算-SURPLUS
	 */
	public void setCountWay(PtTurntableCountWay countWay) {
		this.countWay = countWay;
	}

	/**
	 * 获取
	 * 
	 * @return createdTime 
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdTime 
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

	/**
	 * 获取
	 * 
	 * @return createdBy 
	 */
	public String getCreatedBy() {
		return createdBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param createdBy 
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	/**
	 * 获取
	 * 
	 * @return modifiedTime 
	 */
	public LocalDateTime getModifiedTime() {
		return modifiedTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param modifiedTime 
	 */
	public void setModifiedTime(LocalDateTime modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

	/**
	 * 获取
	 * 
	 * @return modifiedBy 
	 */
	public String getModifiedBy() {
		return modifiedBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param modifiedBy 
	 */
	public void setModifiedBy(String modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	/**
	 * 获取删除 0-未删除；1-已删除
	 * 
	 * @return del 删除 0-未删除；1-已删除
	 */
	public Boolean getDel() {
		return del;
	}
  	
	/**
	 * 设置删除 0-未删除；1-已删除
	 * 
	 * @param del 删除 0-未删除；1-已删除
	 */
	public void setDel(Boolean del) {
		this.del = del;
	}

	/**
	 * 获取
	 * 
	 * @return delTime 
	 */
	public LocalDateTime getDelTime() {
		return delTime;
	}
  	
	/**
	 * 设置
	 * 
	 * @param delTime 
	 */
	public void setDelTime(LocalDateTime delTime) {
		this.delTime = delTime;
	}

	/**
	 * 获取
	 * 
	 * @return delBy 
	 */
	public String getDelBy() {
		return delBy;
	}
  	
	/**
	 * 设置
	 * 
	 * @param delBy 
	 */
	public void setDelBy(String delBy) {
		this.delBy = delBy;
	}

    public String toString() {
		return new StringBuilder().append("PtTurntableEntity{").
			append("id=").append(id).
			append(",busdId=").append(busdId).
			append(",title=").append(title).
			append(",startTime=").append(startTime).
			append(",endTime=").append(endTime).
			append(",prizeContent=").append(prizeContent).
			append(",prizeRepeatContent=").append(prizeRepeatContent).
			append(",missPrizeContent=").append(missPrizeContent).
			append(",consumePoint=").append(consumePoint).
			append(",maxCount=").append(maxCount).
			append(",maxExtractCount=").append(maxExtractCount).
			append(",explain=").append(explain).
			append(",gainProbability=").append(gainProbability).
			append(",missProbability=").append(missProbability).
			append(",indexIcon=").append(indexIcon).
			append(",turntableTopImg=").append(turntableTopImg).
			append(",turntableActImg=").append(turntableActImg).
			append(",turntableBackImg=").append(turntableBackImg).
			append(",applicationCode=").append(applicationCode).
			append(",enableStatus=").append(enableStatus).
			append(",countWay=").append(countWay).
			append(",createdTime=").append(createdTime).
			append(",createdBy=").append(createdBy).
			append(",modifiedTime=").append(modifiedTime).
			append(",modifiedBy=").append(modifiedBy).
			append(",del=").append(del).
			append(",delTime=").append(delTime).
			append(",delBy=").append(delBy).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public PtTurntableEntity copy() {
		return new PtTurntableEntity(this);
	}

    /** id */
	public static final String COL_ID = "id";

    /** 商圈id */
	public static final String COL_BUSD_ID = "busd_id";

    /** 抽奖标题 */
	public static final String COL_TITLE = "title";

    /** 开始时间 */
	public static final String COL_START_TIME = "start_time";

    /** 结束时间 */
	public static final String COL_END_TIME = "end_time";

    /** 中奖文案 */
	public static final String COL_PRIZE_CONTENT = "prize_content";

    /** 重复中奖文案 */
	public static final String COL_PRIZE_REPEAT_CONTENT = "prize_repeat_content";

    /** 未中奖文案 */
	public static final String COL_MISS_PRIZE_CONTENT = "miss_prize_content";

    /** 消耗积分 */
	public static final String COL_CONSUME_POINT = "consume_point";

    /** 中奖最大次数 */
	public static final String COL_MAX_COUNT = "max_count";

    /** 每人每天抽奖次数 */
	public static final String COL_MAX_EXTRACT_COUNT = "max_extract_count";

    /** 抽奖规则说明 */
	public static final String COL_EXPLAIN = "`explain`";

    /** 中奖概率 */
	public static final String COL_GAIN_PROBABILITY = "gain_probability";

    /** 不中奖概率 */
	public static final String COL_MISS_PROBABILITY = "miss_probability";

    /** 入口图标 */
	public static final String COL_INDEX_ICON = "index_icon";

    /** 顶部图  */
	public static final String COL_TURNTABLE_TOP_IMG = "turntable_top_img";

    /** 活动背景图 */
	public static final String COL_TURNTABLE_ACT_IMG = "turntable_act_img";

    /** 转盘背景图 */
	public static final String COL_TURNTABLE_BACK_IMG = "turntable_back_img";

    /** 应用系统 */
	public static final String COL_APPLICATION_CODE = "application_code";

    /** 启用状态 */
	public static final String COL_ENABLE_STATUS = "enable_status";

    /** [枚举]抽奖概率计算：0-按商品总数计算-ALL、1-按商品剩余数计算-SURPLUS */
	public static final String COL_COUNT_WAY = "count_way";

    /**  */
	public static final String COL_CREATED_TIME = "created_time";

    /**  */
	public static final String COL_CREATED_BY = "created_by";

    /**  */
	public static final String COL_MODIFIED_TIME = "modified_time";

    /**  */
	public static final String COL_MODIFIED_BY = "modified_by";

    /** 删除 0-未删除；1-已删除 */
	public static final String COL_DEL = "del";

    /**  */
	public static final String COL_DEL_TIME = "del_time";

    /**  */
	public static final String COL_DEL_BY = "del_by";
}
